<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Reporte de Solicitud de Compra</title>
<style type="text/css">
<!--
.style7 {font-size: 12px}
.style8 {font-size: 24px}
-->
</style>
<link href="estilacho.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
	text-decoration: none;
	color: #993300;
}
a:visited {
	text-decoration: none;
	color: #993300;
}
a:hover {
	text-decoration: none;
	color: #993300;
}
a:active {
	text-decoration: none;
	color: #FF0000;
}
-->
</style></head>

<body>
<p align="center">
  <?
include 'conexion.php';
	extract($_POST);
    extract($_GET);
/*$base= "ucg - copia";
	$conexion = mysql_connect("localhost","root","");
		mysql_select_db($base,$conexion);*/
 	
   	$sqla="SELECT DISTINCT DATE_FORMAT(fecha,'%Y') from solicompra";
	$resultadoa = mysql_query($sqla, $conexion);
	
	
	?>
</p>
<form id="form1" name="form1" method="post" action="consulta_soli_gen1.php">
  <table border="0" class="tablainstitucion" align="center">
    <tr>
      <th colspan="2">Reportede Solicitud de Compra</th>
    </tr>
    <tr>
      <td width="19%"><div align="right">Seleccione el A�o: </div></td>
      <td width="11%"><span class="style7">
        <select name="ano" class="combobox" id="ano">
          <option value="">SELECCIONE UN A�O</option>
          <? while ($busqueda = mysql_fetch_array($resultadoa)) { ?>
          <option value="<? echo $busqueda[0]; ?>"><? echo $busqueda[0];?> </option>
          <? }  ?>
        </select>
      </span></td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;      </td>
    </tr>
  </table>
  <div align="center">
  <input name="Submit" type="submit" class="boton" value="Buscar">
  </div>
</form>

<div align="center"> <a href="solicompra1.php">Regresar </a></div>
</body>
</html>
